<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(name="tom",age=29){
            console.log(name,age);
        }
       fn("eric",19);
       function show(...vals){
           console.log(vals.length);
           vals.forEach(x=>{
               console.log(x);
           })
       }
       show(1,2,3,"eric",true,{name:"zs"})
       const getStu=(id,name,score)=>({id,name,score})
       console.log(getStu(1,"java",99));

       let person={
           name:"zs",
           age:19,
           info(){
               console.log(this);//这里表示person本身
           },
           msg:()=>{
               console.log(this);
           }
       }
       person.info();
       person.info();
       function funx(a,b){
            console.log(arguments);        
       }
       
       funx()

       const mm = ()=>{
            console.log(arguments);
            
       }

       mm();
    </script>
</body>
</html>